﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Event.NCL;
using CPPEI.Coolzon.Service.Contract;
using CPPEI.Coolzon.UI.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI.Views.EventProxies
{
    public class RespCheckClientStatusHandler : BaseResponseHandler<RespCheckClientStatusData>
    {
        protected override void OnHandle(RemoteEventProxy remoteEventProxy, ServiceProxy.MainServiceRef.Response response,
            RespCheckClientStatusData responseData)
        {
            Coolzon.Event.NCL.NCLEndCheckClientStatusEvent @event = new Coolzon.Event.NCL.NCLEndCheckClientStatusEvent(responseData.IsPass);
            Coolzon.Event.NCL.NCLEventBus.PublishAsync(@event);
        }
    }
}
